Day 4 - Beginnings and ends
Solutions to exercises
Exercise 4.01
Show the first 3 entries of slices.txt
Solution
$ head -n3 slices.txt
01 ######################################
02 ######################################
03 ######################################
Go back to the exercise
Exercise 4.02
Show the last 3 entries of slices.txt
Solution
$ tail -n3 slices.txt
18 ######################################
19 ######################################
20 ######################################
Go back to the exercise
Exercise 4.03
Show the content of slices.txt skipping the last 3 lines
Solution